﻿using UnityEngine;
using System.Collections;

public class ProfileHandler : MonoBehaviour {

	public UITexture profileImage;
	public ProfileData assignedProfile;

	public void Assign(ProfileData profileData)
	{
		assignedProfile = profileData;
		Texture tex = assignedProfile.LoadThumbnailTexture();

		profileImage.mainTexture = tex;
	}
}
